﻿using OT.Data;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace OT.Areas.Admin.Models
{
    public class Citys
    {
        public int CityID { get; set; }

        [Required(ErrorMessage = "CityCode is Required")]
        public string CityCode { get; set; }

        [Required(ErrorMessage = "CityName is Required")]
        public string CityName { get; set; }

        [Required(ErrorMessage = "Please specify state ID")]
        public int? StateID { get; set; }
        public int? CountryID { get; set; }
        public DateTime CreatedDate { get; set; }

        public DateTime UpdatedDate { get; set; }

        [DisplayName("State Name")]
        public string StateName { get; set; }

        public ICollection<State> States { get; set; }
        public ICollection<Country> Country { get; set; }
    }
}